package com.demo.caizi.config.context;

public class CustomContextHolder {

    private static ThreadLocal<CustomContext> holder = new ThreadLocal<>();

    public static void setHolder(CustomContext context){
        holder.set(context);
    }

    public static CustomContext getHolder() {
        return holder.get();
    }

    public static void clear(){
        holder.get();
    }
}
